package cn.gok.demo.controller;

import cn.gok.demo.base.web.BaseController;
import cn.gok.demo.entity.User;
import cn.gok.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: zhengyx
 * @Date: 2022/7/26 11:26
 * @Version 1.0
 */
@RestController
@RequestMapping("user")
public class UserController extends BaseController<UserService,User> {
//    @Autowired
//    UserService userService;
//    @RequestMapping("list")
//    public List<User> list(){
//        List<User> list=userService.list();
//        return list;
//    }


    @Override
    public String getPerfix() {
        return "/user";
    }
}
